﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;

namespace Student1
{
    public partial class Form1 : Form
    {
        StudClass1 s1 = new StudClass1();
        public Form1()
        {
            InitializeComponent();
        }
        private void button1_Click(object sender, EventArgs e)
        {
            s1.Create();
            button1.Enabled = false;
            button2.Enabled = true;
            button3.Enabled = true;
        }
        private void button2_Click(object sender, EventArgs e)
        {
            textBox1.Text = s1.Display();
        }
        private void button3_Click(object sender, EventArgs e)
        {
            textBox2.Text = s1.Average().ToString();
        }
        private void Form1_Load(object sender, EventArgs e)
        {

        }
        private void label1_Click(object sender, EventArgs e)
        {
        }
    }
}
